package com.springboot.frame.comm.config;

import lombok.Getter;

/**
 * 策略配置
 *
 * @author madman
 */
@Getter
public class StrategyConfig {

  /**
   * 数据库表需要去掉的前缀 <p> 如：数据库名称sys_user, 此处设置sys_,生成User </p>
   */
  private String[] tablePrefix;
  /**
   * 数据库表字段需要去掉的前缀 <p> 如：数据库表字段名称t_age, 此处设置t_,生成Age </p>
   */
  private String[] columnPrefix;
  /**
   * 代码生成需要包含的表
   */
  private String[] includeTable;


  public StrategyConfig tablePrefix(String... tablePrefix) {
    this.tablePrefix = tablePrefix;
    return this;
  }

  public StrategyConfig columnPrefix(String... columnPrefix) {
    this.columnPrefix = columnPrefix;
    return this;
  }

  public StrategyConfig includeTable(String... includeTable) {
    this.includeTable = includeTable;
    return this;
  }

}
